package main

import "fmt"

// Pointers point to a memory location of a variable. Go is fully garbage-collected.


func main () {
	b := *getPointer()
	fmt.Println("Value is", b)

	a := new(int)
	*a = 234
	fmt.Println(a)
	fmt.Println(*a)
  }

func getPointer () (myPointer *int) {
	a := 234
	return &a
}